<form id="dictionaryForm" method="post">
	<table class="formTable">
		<tr>
			<td class="table_left"><font color="red">*</font>标签：</td>
			<td>
				<input type="hidden" name="id"/>
				<input name="label" data-options="required:true,width: 200,prompt:'标签'" type="text" class="easyui-textbox"/> 
			</td>
			<td class="table_left">值：</td>
			<td><input name="value" type="text" class="easyui-textbox" data-options="required:true,width: 200,prompt:'值'"/></td>
		</tr>
		<tr>
		    <td class="table_left"><font color="red">*</font>类型：</td>
			<td><input name="type" class="easyui-textbox" data-options="required:true,width: 200,prompt:'类型'"/></td>
		    <td class="table_left">上级字典：</td>
			<td><select name="parentId" id="parentId"></select></td>
		</tr>
		<tr>
			<td class="table_left">描述：</td>
			<td colspan="3">
				<input class="easyui-textbox" name="remark" data-options="multiline:true,prompt:'描述'" value="" style="width:250px;height:80px">
			</td>
		</tr>
	</table>
</form>
<script type="text/javascript">
JSmile.KEasy.initForm("#dictionaryForm","/sys_dictionary/saveORupdate"); 
$('#parentId').combotree({
	method: 'get',
	editable:false,
	lines:true,
	width:200,
    url: JSmile.baseUrl+'/sys_dictionary/findAll?parentId=0',
    loadFilter:function(data,parent){
    	return JSmile.convert(data,{textField:"label"});
    }
});
</script>